import request from '@/utils/request'

// 查询供热数据列表
export function listAppHeating(query) {
  return request({
    url: '/system/appHeating/list',
    method: 'get',
    params: query
  })
}

// 查询供热数据详细
export function getAppHeating(id) {
  return request({
    url: '/system/appHeating/' + id,
    method: 'get'
  })
}

// 新增供热数据
export function addAppHeating(data) {
  return request({
    url: '/system/appHeating',
    method: 'post',
    data: data
  })
}

// 修改供热数据
export function updateAppHeating(data) {
  return request({
    url: '/system/appHeating',
    method: 'put',
    data: data
  })
}

// 删除供热数据
export function delAppHeating(id) {
  return request({
    url: '/system/appHeating/' + id,
    method: 'delete'
  })
}
